import Vue from 'vue'
import App from './App.vue'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 6、导入路由
import router from './router'

// 引入全局样式
import '@/styles/index.scss'

// 导航守卫
import './permission'

// 注册全局组件
import myCard from './components/myCard.vue'

Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.component('myCard', myCard)

new Vue({
  router, // 7、把路由哦注入到vue实例中
  store,
  render: h => h(App)
}).$mount('#app')
